package com.icss.flow.pojo.entity;

import com.alibaba.druid.support.json.JSONUtils;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Entity {

    private String tableName;
    private List<String> fields;

    public void setFields(String fields) {
        this.fields = (List<String>) JSONUtils.parse(fields);
    }
}
